package com.example.petshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.petshop.entity.Pet;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PetMapper  extends BaseMapper<Pet> {
    List<Pet> getAllPets();

    Pet getPetById(int petId);
    int insert(Pet pet);

    void deleteById(Integer petId);

    void updatePet(Pet pet);
}
